package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaosong
 * @since 2023-03-31
 */
@Data
@TableName("wnsys_training")
@ApiModel(value = "Training对象", description = "")
public class Training implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("靶场名称")
      private String trainingName;

      @ApiModelProperty("靶场图片")
      private String avatar;

      @ApiModelProperty("靶场难度")
      private Byte difficulty;

      @ApiModelProperty("价格")
      private BigDecimal price;

      @ApiModelProperty("是否vip")
      private Byte isVip;

      @ApiModelProperty("靶场父ID")
      @TableField(value = "training_parentId")
      private Integer trainingParentId;

      @ApiModelProperty("逻辑删除")
      @TableLogic
      private Byte isDeleted;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;
}
